<?php 
require("DataHelper.php");
require("SanPhamDTO.php");

//ket noi toi co so du lieu thong qua datahelper.php
class class_nguoiban
{
	
	public function capnhat($username,$diachi,$dienthoai,$email,$matkhau,$hinhanh)
	{
		//$this->setQuery('set names utf8');
		//$this->Query();
		
		$sql = "update tai_khoan set tk_dia_chi =\''.$diachi.'\','.
					'tk_dien_thoai=\''.$dienthoai.'\','.
					'tk_email = '.$email.','.
					'tk_avartar = '.$hinhanh.','.
					'tk_password = \''.$matkhau.'\','.
					'where tk_username=\''.$username.'\'";
		
		QuerySQL($sql);
			StopConnection();
		//$kq = $this->Query();
		//return $kq;
	}
	
	
}

?>
	
